import request from "../axios/request";

export function getTableList(params) {
    return request.get('/table/getTableList', params);
}

export function getTableNames() {
    return request.get('/table/getTableNames');
}

export function updateTable(params) {
    return request.postJSON('/table/updateTable', params);
}


export function addTable(params) {
    return request.postJSON('/table/addTable', params);
}

export function importTable(params) {
    return request.get('/table/importTable', params);
}

export function generateCode(params) {
    return request.postJSON('/table/generateCode', params);
}


export function uninstall(params) {
    return request.postJSON('/table/uninstall', params);
}

export function deleteTable(params) {
    return request.postJSON('/table/deleteTable', params);

}
